package com.theme.passport.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "QQ注册表单")
public class QqRegForm implements Serializable {
    private static final long serialVersionUID = 1L;
    // 用户的标识
    @ApiModelProperty(value = "openid")
    @NotBlank(message = "openid不能为空")
    private String openid;

    @ApiModelProperty(value = "昵称")
    @NotBlank(message = "用户昵称不能为空")
    private String nickName;

    @ApiModelProperty(value = "头像")
    @NotBlank(message = "用户头像不能为空")
    private String avatar;

    @ApiModelProperty(value = "国家")
    @NotBlank(message = "国家不能为空")
    private String country;

    @ApiModelProperty(value = "省")
    @NotBlank(message = "省不能为空")
    private String province;

    @ApiModelProperty(value = "城市")
    @NotBlank(message = "城市不能为空")
    private String city;

    @ApiModelProperty(value = "用户的性别，值为1时是男性，值为2时是女性，值为0时是未知")
    @NotBlank(message = "用户的性别不能为空")
    private String gender;

}
